using System;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;

namespace FarmDemo.Models;
public class UserWithToken : User
{
    public string AccessToken { get; set; }
    public string RefreshToken { get; set; }

    public UserWithToken(User user)
    {
        this.UserId = user.UserId;
        this.email = user.email;
        this.userName = user.userName;
        this.age = user.age;
        this.gender = user.gender;

        this.Role = user.Role;
    }
}